package com.shixj.easy.spider.model;

import lombok.Data;

import java.util.List;

/**
 * Created by shixj on 2018/1/16.
 */
@Data
public class Catalog implements AbstractEntity {
    private Novel novel;
    private List<Chapter> chapterList;

    /**
     * 获取源ID
     *
     * @return
     */
    @Override
    public String getSourceId() {
        return novel.getSourceId();
    }

    /**
     * 获取现源ID
     *
     * @return
     */
    @Override
    public Long getId() {
        return novel.getId();
    }
}
